<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>导出项目</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/easyui/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/buttons.css" />
<link rel="stylesheet" type="text/css" href="/jxcsxm/js/autocomplete/jquery.autocomplete.css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-form.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/datagrid-detailview.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/util/jquery.cookie.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/YMLib.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/YWLib.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/autocomplete/jquery.autocomplete.js" ></script>
<script type="text/javascript">
$(function(){
	/* $('#sqrq').datebox({
	    required:true
	});
 	$('#sqrq').datebox('setValue',formatterDate(new Date));  */
 	
	$('#sqrq').combobox({
		url : '/jxcsxm/tjbb/querysbzjsj.do?xmjbxx.id='
				+ parent.YMLib.Var.data.id,
		valueField : 'name',
		textField : 'name',
		panelHeight:'200',
		multiple:false,
		editable:false
	});
	//$('#' + id).combobox('setValue',str);
 	
	$("#xmmc").html(parent.YMLib.Var.data.xmmc)
})
	function search(){
		var sqrq = $('#sqrq').datebox('getValue');
		if(sqrq!="" && sqrq!=null){
			var params={
				'xmjbxx.xmmc':parent.YMLib.Var.data.xmmc,//--开始时间
				'xmjbxx.id':parent.YMLib.Var.data.id,
				'xmjbxx.name':sqrq,//--开始时间
			};
			postDownLoadFile({
	           url:'/jxcsxm/tjbb/exportsbzj.do',
	           data:params,
	           method:'post'
	         }); 	
		}else{
			alert("请选择任意一项！")
		}
	};
	//显示当前日期
	formatterDate = function (date) {
		var day = date.getDate() > 9 ? date.getDate() : "0" + date.getDate();
		var month = (date.getMonth() + 1) > 9 ? (date.getMonth() + 1) : "0"+ (date.getMonth() + 1);
		return date.getFullYear() + '-' + month + '-' + day;
	};
</script>
</head>
<body>
<form id="easyui-checkbox" action="/jxcsxm/tjbb/insertSbzjsq.do" method="post">
   <table class='table' style="width: 100%; background-color: #FFE7BA; font-size: 12px"
		border="0" cellpadding="2" cellspacing="1">
		<tr style="height: 40px;">
			<td style="background-color: #ffffff;padding-left:40px;width:33%;">
				项目名称
			</td>
			<td style="background-color: #ffffff;width:65%;"><span id="xmmc"></span></td>
		</tr>
		<tr style="height: 60px;">
			<td style="background-color: #ffffff;padding-left:40px;width:33%;" >
				申请时间
			</td>
			
			<td style="background-color: #ffffff;width:65%;" >
				<!-- <input id="sqrq" type="text" name="sqrq"> -->
				<select id="sqrq" name="xmjbxx.sqrq"  style="width: 180px;" ></select></td>
		</tr>
		<tr><td colspan="8" style="background-color: #ffffff; height: 30px;"></td></tr>
		<tr>
			<td colspan="8" style="background-color: #ffffff; height: 35px;" align="center">
			<a id='mybuttion1' style="margin-top: 1px;margin-bottom: 1px;" href="javascript:search()" onmouseover="szgq('button button-tiny button-glow button-rounded button-raised button-primary','mybuttion1')" onmouseout="szgq('button button-tiny button-rounded button-raised button-primary','mybuttion1')"  class="button button-tiny button-rounded button-raised button-primary">导出</a>
			&nbsp;&nbsp;<a id='mybuttion2' style="margin-top: 1px;margin-bottom: 1px;" href="javascript:closeWindow()" onmouseover="szgq('button button-tiny button-glow button-rounded button-raised button-primary','mybuttion2')" onmouseout="szgq('button button-tiny button-rounded button-raised button-primary','mybuttion2')"  class="button button-tiny button-rounded button-raised button-primary">取消</a>	
			</td>
		</tr>
	</table>
</form>
</body>
</html>